Skip to content

Instantly share code, notes, and snippets.

@j4k
Created July 16, 2014 16:27
Show Gist options
  • Select an option

  • Save j4k/d99024e8f29f5e658337 to your computer and use it in GitHub Desktop.

Select an option

Save j4k/d99024e8f29f5e658337 to your computer and use it in GitHub Desktop.
c5 cache
// Fetch the Feed object
$jobsXML = simplexml_load_file('https://tsb-applications.advorto.com/candidate/vacancyfeed.aspx');
// Cache it as a JSON object
Cache::set('jobs', false, json_encode($jobsXML), false);
// Fetch the cached object
$jobs = Cache::get('jobs', false);
var_dump($jobs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment