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
3
votes
1 answer

Zend_Cache unserialize - memory hog?

I've setup Zend_Db_Table_Abstract so it uses metadata cache and then profiled with xhprof to see how much memory it uses. Turns out 34 calls from _setupMetadata to Zend_Cache_Core::load use up 7mb memory, most of it being used by calling…
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66
3
votes
1 answer

How to selectively clear cache (using tags or other option) with Memchached backend and Zend Framework

We use Memcached and Zend Framework in our web project. Now, we need to clean cache selectively using tags as specified in Zend_Cache API. Unfortunately, memcached doesn't support tags. I have found these workarounds: Memcached-tag project. Has…
Emilio Nicolás
  • 2,554
  • 5
  • 22
  • 29
3
votes
1 answer

Zend_Paginator and cache. How can I read the datas that I have sent to cache

I register the data to cache and I see the foliowing : zend_cache---Zend_Paginator_1_42242d5fa3c4e4b7758810c276163e8a but I can't read. $request = $this->getRequest(); $q = new Model(); $paginator = Zend_Paginator::factory($q->fetchAll()); …
asinan
  • 41
  • 2
3
votes
1 answer

Cache-Tags in Symfony2/Twig?

I'm looking for something similar to Zend_Cache-Tags in Symfony2. The aim is caching different parts of the page and clean up the cache-parts, if the related data changes. An Example: A shop-overview could tagged with 'article-2', 'article-5'... How…
Daniel
  • 539
  • 4
  • 25
3
votes
1 answer

Setting a flag in cache memory using zend_registry

Let's suppose I have a Php function like this: private function verification($isXLSFile = false) { if ($isXLSFile) { $this->parseXLSFile(); }else { $parsedCSVArr = $this->getCSVarr(); …
sergioviniciuss
  • 4,596
  • 3
  • 36
  • 50
3
votes
3 answers

Zend Metadata Cache in file

I set up a metadata cache in Zend Framework because a lot of DESCRIBE queries were executed and it affected the performances. $frontendOptions = array ('automatic_serialization' => true); $backendOptions = array ('cache_dir' => CACHE_PATH .…
Matthieu Napoli
  • 48,448
  • 45
  • 173
  • 261
3
votes
2 answers

Zend Framework cache storage location

I'm using Zend Framework and Zend_Cache with the File backend. According to the ZF manual the recommended place to store the cache files would be under /data/cache but I'm thinking it would make more sense to store them under /temp/cache. Why is…
Lars Nyström
  • 5,786
  • 3
  • 32
  • 33
3
votes
1 answer

What are different between Backend vs Frontend Cache of Zend Framework

I am implementing caching for my website which is using Zend Framework. I look into the source code and see that: Zend_Cache::factory() always need two configurations of backend and frontend. And my issue is: I don't know why backend is set inside…
vietean
  • 2,975
  • 9
  • 40
  • 65
3
votes
1 answer

Strange Behavior Serializing Objects and Caching Them

I'm running into an issue that I can't seem to be able to narrow down. In a Zend Framework application, I am using Zend Cache to cache tide and weather data contained within a custom Response object. The point at which the data is initially created,…
Jeremy Harris
  • 24,318
  • 13
  • 79
  • 133
2
votes
4 answers

Full page cache, block update

I want to implement Full Page Cache, but currently I have 1 issue to deal with. We work with E-Commerce system, which is based on Zend's and Varien library : Magento E-commerce Community Edition. I am able to cache output, the only problem is, how…
Jevgeni Smirnov
  • 3,787
  • 5
  • 33
  • 50
2
votes
1 answer

Zend Cache Backend Static Remove/Clean

I'm trying to implement a cache using Zend Cache. I use the following code to initialize the caches. $tagCache = Zend_Cache::factory('Core', 'File', array('automatic_serialization' =>…
Iansen
  • 1,268
  • 1
  • 10
  • 14
2
votes
1 answer

Zend_Cache caches the entire site instead of a controller

I wanted to cache controller ajax 10800, …
Stanislav
  • 59
  • 2
  • 7
2
votes
2 answers

Getting all keys in a namespace with Zend Data Cache

With the Zend Data Cache - PHP API, is there a method for retrieving all keys in a namespace? Essentially, I need to replicate what you can do with apc_cache_info, such as $info = apc_cache_info("user"); $keys = array(); foreach…
mpdonadio
  • 2,891
  • 3
  • 35
  • 54
2
votes
1 answer

What is the best practice in caching? What are the limits?

Im using Zend_cache to cache results of some complicated db queries, services etc. My site is social, that means that there is a lot of user interaction. Im able to cache users data here and there as well. But taht means, that i will have nearly…
Jaroušek Puchlivec
  • 221
  • 1
  • 2
  • 11
2
votes
1 answer

Storing an instance of Zend_Log in Zend_Cache/Zend_Registry with/without custom helper

I am trying to store an instance of Zend_Log (with Zend_Log_Writer_Stream) to Zend_Cache(preferably) or Zend_Registry(fallback) but with the custom helper as an abstraction layer instead of direct access. Problem Except when using Zend_Registry…
Shoaibi
  • 859
  • 2
  • 11
  • 23