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
36
votes
3 answers

Zend OPCache - opcache.enable_cli 1 or 0? What does it do?

In the documentation it says "mostly used for debugging" which would lead me think "never enable it unless you've a problem and need to do some debugging," however reading mostly everything that I could find about it says to enable it…
Jack
  • 653
  • 1
  • 6
  • 14
6
votes
2 answers

Patterns for clearing Zend Cache

I started using Zend Cache (APC backend) and all is well in terms of returning cached values instead of hitting the Database each time. However, heres my problem: $cache_key =…
marko.vujo
  • 101
  • 1
  • 6
5
votes
4 answers

Zend Config Ini Caching

My Zend app uses 3 ini config files, with a total of over 200 lines to parse, containing over 100 instructions. Are these files parsed every request? Some people say they are (like here and here). If so, is this not an efficiency issue? The comments…
jackocnr
  • 17,068
  • 10
  • 54
  • 63
4
votes
1 answer

Redis error "Connection read timed out" during caching

I have Zend Framework project and I decided to use Rediska as Redis client. Rediska has cache backend adapter for ZF - Rediska_Zend_Cache_Backend_Redis. I fetch from DB collection of objects and try to save it in cache but get error: Connection…
Dmitro
  • 1,489
  • 4
  • 22
  • 40
4
votes
2 answers

Zend_db caching

Is there a way to caching resultsets in Zend_db? For example, I want to run a select query using Zend_db and want this query to be cached to be able to run it faster later.
Cagatay Gurturk
  • 7,186
  • 3
  • 34
  • 44
4
votes
2 answers

Why is my PHP error log lagging behind by 2 hours?

When checking php.ini, from both phpinfo and php -i on the command line, my timezone is set to Africa/Johannesburg. So my timezone is GMT +2. I wrote a tiny snippet to check the time is right as follows: echo date('h:i A', time()); echo '
' .…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
4
votes
1 answer

How do I set expire time for Zend Cache Storage?

I would like to store some XML in a Zend filesystem cache and have it expire after 30 minutes. How does one set the cache duration / expiry? I am using Zend cache as a component and not in the context of a full ZF2 application. $cache =…
codecowboy
  • 9,835
  • 18
  • 79
  • 134
4
votes
1 answer

Getting Zend Framework 2 Memcached working

I'm trying to create a new (configured and ready to use) Zend\Cache\Storage\Adapter\Memcached and getting a error: File: [project]/vendor/zendframework/zendframework/library/Zend/Cache/Storage/Adapter/MemcachedResourceManager.php:52 Message: No…
automatix
  • 14,018
  • 26
  • 105
  • 230
3
votes
2 answers

Is it possible to limit the number of $_GET parameters to a Zend Framework application using Zend_Cache_Backend_Static to cache static pages as HTML

I've just set up static page caching using Zend_Cache_Backend_Static to serve cached html files in my application, which is working great. The only concern I have is down to the way it caches files with $_GET parameters. Because it automatically…
baseten
  • 1,362
  • 1
  • 13
  • 34
3
votes
1 answer

Whats is the difference between Zend_Cache_Frontend_Capture and Zend_Cache_Frontend_Page

Can someone explain the difference between this two frontends Zend_Cache_Frontend_Capture and Zend_Cache_Frontend_Page? the Capture is the default one for page caching ... the weird thing is, it makes the id with get variables, but there is no…
StPiere
  • 4,113
  • 15
  • 24
3
votes
1 answer

Zend_Cache - retrieve expired data?

I'm using Zend_Cache to cache data generated from a web service. However, in the event the web service does not respond, I want to display the outdated information and not leave a blank space. According to the documentation, the answer is to pass…
PeterB
  • 2,212
  • 2
  • 21
  • 33
3
votes
1 answer

When I try to cache private images (an action with modifed headers), the headers are omitted

I have the following action: public function viewImageAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $filename = sanitize_filename($this->_request->getParam('file'), 'jpg'); $data…
Keyne Viana
  • 6,194
  • 2
  • 24
  • 55
3
votes
2 answers

Where should I implement cache within Zend_Db?

I'm looking to implement a cache within Zend_Db, there isn't any native method to provide a cache to Zend_Db, so I'm wondering where should I do it. I took a look to the Zend_Db_Table_Abstract (I'm extending it in a custom…
John
  • 119
  • 5
3
votes
1 answer

Zend Cache - problem with deleting cache files

I have an strange problem with Zend Cacke (File Backend) running on linux with apache and php 5.2 The files are stored in /myspace/tmp1 Directory has the persmission: drwxrwxrwx 2 nobody nogroup 8192 2010-09-20 13:35 tmp1 The created temp file…
opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143
3
votes
1 answer

Is it possible to connect zf1 and memcached using unix socket?

Currently moving legacy code to the new server. My environment is configured to use only sockets. Perhaps it is possible to configure zend framework 1 to use unix socket to connect to memcached server? P.S. Not to confuse people: question is not…
avasin
  • 9,186
  • 18
  • 80
  • 127
1
2 3 4 5 6 7