Questions tagged [zend-cache]

The tag "zend-cache" means one of the following: 1) The data cache functions of Zend Server 2) The Zend Cache Extension of Zend Platform 2) The component Zend\Cache of Zend Framework 2 3) The component Zend_Cache of Zend Framework 1

The tag "zend-cache" means one of the following:

  1. The data cache functions of Zend Server
  2. The Zend Cache Extension of Zend Platform
  3. The component Zend\Cache of Zend Framework 2
  4. The component Zend_Cache of Zend Framework 1
103 questions
0
votes
1 answer

ini-config for Zend_Cache_Frontend_Page

How to configure Zend_Cache_Frontend_Page in application.ini? I cannot define regexps (see example http://framework.zend.com/manual/en/zend.cache.frontends.html#zend.cache.frontends.page.examples. It should be something like…
Anton Egorov
  • 1,174
  • 1
  • 11
  • 21
0
votes
1 answer

Obtaining All Cache Keys in Zend-Cache

Here is my cache initialization code: use Zend\Cache\StorageFactory; $cache = StorageFactory::factory(array( 'adapter' => array( 'name' => 'filesystem', // With a…
somejkuser
  • 8,856
  • 20
  • 64
  • 130
0
votes
1 answer

How to use \Zend\Cache andZend\Db\RowGateway\RowGateway together?

I have an abstract table class with code similar to this: function fetchById($id) { $id = (int) $id; $cacheName = sprintf('%s-%s', stripslashes(get_class($this)), hash('sha256', sprintf( '%s-%s-%s', get_class($this),…
Richard Parnaby-King
  • 14,703
  • 11
  • 69
  • 129
0
votes
1 answer

stop memcache from removing data in php/silverstripe/zend cache

I have recently installed memcache(d), but the data only seems to stay in the cache for a minute or so, even though I have set the expiration to three days. I am trying to cache 1000s of items, but only a few seem to stick! Here are the stats: STAT…
0
votes
2 answers

Zend_Cache: After loading cached data, character encoding seems messed up

First; On my development server (localhost; default XAMPP on OSX) everything works fine, though when I deploy the exact same code (and data) to the staging server (managed Apache2 on Redhat) it breaks. I'm caching some data using Zend_Cache using…
Maurice
  • 4,829
  • 7
  • 41
  • 50
0
votes
2 answers

Zend error: The apc extension must be loaded for using this backend

Hi I am getting the above error setting up my Zend application on a public hosted server. I have another application on the same sever which works ok so I assume APC is obviously loaded. How can I diagnose this? Thanks
jgnasser
  • 117
  • 2
  • 8
0
votes
2 answers

Generating a unique id for a given string using php

I'm using Zend_Cache_Core with Zend_Cache_Backend_File to cache results of queries executed for a model class that accesses the database. Basically the queries themselves should form the id by which to cache the obtained results, only problem is,…
Joey
  • 623
  • 1
  • 7
  • 7
0
votes
1 answer

ZF2 - Saving a result of a function in cache

I made a view helper that checks if an external URL exists before outputting it. Some of those URLs are in my main layout, so that check is quite slowing down my site by calling all those urls all the times, to check if they exist. I would like to…
Aise
  • 173
  • 2
  • 13
0
votes
1 answer

Zend\Cache\Storage\Adapter clearByTags Tag with parameters in ZF2

I'm using bramstroker's StrokerCache Zend Framework 2 module which itself uses Zend\Cache and has the method clearByTags(). If I want to clear cache, th following works fine: public function fooAction() { $cs =…
mdthh
  • 1,248
  • 1
  • 13
  • 22
0
votes
2 answers

Zend page caching similar to smarty?

I there a way to make zend_cache treat front end view similar to smarty? I would like to reduce load times and page caching seems the best way todo this. Also it would need something similar to {nocache}. Okay so I now have: Bootstrap.php …
azz0r
  • 3,283
  • 7
  • 42
  • 85
0
votes
2 answers

How to use Zend Cache with SimpleXML objects?

I'm trying to cache the user timeline of a Twitter feed using Zend_Service_Twitter which returns its results as a SimpleXML object. Unfortunately the regular serialize functions (which Zend Cache uses) don't play nice with SimpleXMl objects. I found…
Jeremy Hicks
  • 3,690
  • 5
  • 40
  • 52
0
votes
0 answers

WURFL and Zend Page Caching

I seem to have a chicken/egg situation that I cannot resolve. I'm using WURFL to sniff mobile clients for my site and varying content based it. This happens in a Controller_Plugin. I'm looking at adding page caching, but as far as I know, that can…
stagl
  • 501
  • 3
  • 18
0
votes
1 answer

Zend_Cache And UTF-8 Problem

I'm trying to save UTF-8 characters with Zend_Cache (like Ť, š etc) but Zend_Cache is messing them up and saves them as Å, ¾ and other weird characters. Here is a snippet of my code that saves the data to the cache (the UTF-8 characters are messed…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
0
votes
1 answer

zend_cache absolute expiration time

I am using php with zend framework and zend_cache. I have these lines of code for this :` $frontendOptions = array ('lifetime' => 12 * 3600, 'automatic_serialization' => true ); $backendOptions = array ('cache_dir' => APPLICATION_PATH…
Abadis
  • 2,671
  • 5
  • 28
  • 42
0
votes
1 answer

Stop zend page cache in the Action

Here is a problem... This is in my bootstrap: $cache = Zend_Cache::factory('Page','File',$frontendOptions,$backendOptions); $cache->start(); Zend_Registry::set("cache", $cache); I need to cancel this $cache->start() from my action. I've tried…
ovnia
  • 2,412
  • 4
  • 33
  • 54