Re: 404 requests filling view cache

2015-10-28 Thread lowpass
@euromark This affects caching? The issue is that the bad requests are nonetheless being saved to the cache views dir. @ojtibi Sorry, should have included that. core.php: Configure::write('Cache.disable', false); Configure::write('Cache.check', true); $engine = 'Fi

Re: 404 requests filling view cache

2015-10-28 Thread euromark
-adjustments and https://github.com/dereuromark/cakephp-tools/blob/master/src/Error/ErrorHandler.php . Mark Am Mittwoch, 28. Oktober 2015 01:34:43 UTC+1 schrieb cricket: > > Cake 2.2.4 (Yeah, i know -- need to upgrade this site!) > > I just noticed that the view cache dir has a bunch of

Re: 404 requests filling view cache

2015-10-27 Thread OJ Tibi - @ojtibi
How does your cache configuration look like? On Wednesday, October 28, 2015 at 8:34:43 AM UTC+8, cricket wrote: > > Cake 2.2.4 (Yeah, i know -- need to upgrade this site!) > > I just noticed that the view cache dir has a bunch of files along the

404 requests filling view cache

2015-10-27 Thread lowpass
Cake 2.2.4 (Yeah, i know -- need to upgrade this site!) I just noticed that the view cache dir has a bunch of files along the lines of: s_2fabc_2fabc_2fabc_2f_24_7b_40print_28md5_28base64_decode_28mzywd2vic2nhbg_29_29_29_7d_2f.php Looks like the work of script kiddies. However, I'm also s

View Cells cache

2015-03-06 Thread lorenzoshake
hi, i'm develop with cake 3 and i'm using view cells feature cache. The cache is created but the method called is always called. Example: $cell = $this->cell('Posts::getLatest', [], ['cache' => true]); echo $cell; the cache is created but i put an echo in ge

Re: Warning (512): cake_model cache was unable to write

2014-09-29 Thread majna
"unable write 'default_aptutori_a....' to Apc cache" I guess your app/Config/core.php needs to be updated for 2.5. APC as a default cache engine was removed two years ago, in 2.3 https://github.com/cakephp/cakephp/commit/2f7f5e13224537eaa4da6b825b1d106bebc35d05 On Tuesday,

Re: Warning (512): cake_model cache was unable to write

2014-09-29 Thread Jeremy Burns
7;mask' => 0777 to > core.php > Cache::config('_cake_core_', array(... > Cache::config('_cake_model_', array(... > https://github.com/cakephp/cakephp/blob/master/app/Config/core.php#L294 > > Andras Kende > > > On Sep 29, 2014, at 4:02 PM, ajt wr

Re: Warning (512): cake_model cache was unable to write

2014-09-29 Thread Andras Kende
Try deleting the files within app/tmp folders. and adding 'mask' => 0777 to core.php Cache::config('_cake_core_', array(... Cache::config('_cake_model_', array(... https://github.com/cakephp/cakephp/blob/master/app/Config/core.php#L294 Andras Kende On Sep

Re: Warning (512): cake_model cache was unable to write

2014-09-29 Thread ajt
2.5 but I checked many posts on the issue and I dont think that makes any difference. The only solution was to chmod the app/tmp folders and subfolders but i did that. I am using cpanel and have no command prompt to run scripts -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: Cakephp Cache expiration doesn't work?

2014-06-14 Thread Anja Liebermann
and core.php: > > in bootstrap: > > I just commented out "//Cache::config('default', array('engine' => > 'File')); " and added: > > Cache::config('default', array( > 'engine' => 'Apc', //[requir

Cakephp Cache expiration doesn't work?

2014-06-13 Thread shabnam koosha
have made in my bootstrap.php and core.php: in bootstrap: I just commented out "//Cache::config('default', array('engine' => 'File')); " and added: Cache::config('default', array( 'engine' => 'Apc', //[required] '

Cache Memcache engine help

2014-04-08 Thread Advantage+
I have / think Memcache engine is set up correct. (v 2.4.6) Core.php: $engine = 'Memcache'; Cache::config('inmemory', array( 'engine' => 'Memcache', 'duration' => 3600,

Re: Problem associated with app/tmp/cache/persistent

2014-03-10 Thread AD7six
On Tuesday, 4 March 2014 18:56:03 UTC+1, Francisco Chacon wrote: > > Hi: > > We have developed several websites using Cake and have found that when the > values in the persistent cache reaches a file size of close to 30,000, the > services > for uploading images and sendin

Problem associated with app/tmp/cache/persistent

2014-03-05 Thread Francisco Chacon
Hi: We have developed several websites using Cake and have found that when the values in the persistent cache reaches a file size of close to 30,000, the services for uploading images and sending emails stop working. The sites have been checked by two persons, but not deeply familiar with Cake

Re: Adding a new counter cache

2014-01-23 Thread euromark
If you want a simple CakePHP only solution: http://www.dereuromark.de/2013/10/29/resetbehavior-and-hazardablebehavior/ you simply create a shell command "counts" or sth and add those 2 lines to re-save all records in a loop $this->Post->Behaviors->load('Tools.Reset', array('fields' => array(

Re: Adding a new counter cache

2014-01-23 Thread Paul Gardner
No .. It will only run through the table once updating all records. On 23 Jan 2014 12:34, "Aurelian Apostol" wrote: > Wouldn't this run an infinte loop? It needs a further WHERE clause maybe > where model_a.model_b_count IS NOT NULL > > marți, 16 martie 2010, 10:28:28 UTC+2, phpMagpie a scris: >>

Re: Adding a new counter cache

2014-01-23 Thread Aurelian Apostol
Wouldn't this run an infinte loop? It needs a further WHERE clause maybe where model_a.model_b_count IS NOT NULL marți, 16 martie 2010, 10:28:28 UTC+2, phpMagpie a scris: > > I would also run a SQl query direct on the database using phpMyAdmin > or the CLI > > UPDATE model_a SET model_a.model_b_c

Weird problem with Form Helper and cache

2013-12-06 Thread HK
I use cake some years now from v1.2 I will write down a problem I had just to share it with you and find out whether it's a bug or not. In my app controller in beforeFilter I have: > if (($newarticles = Cache::read('newarticles', 'short')) == null) > > { &

Re: CakePHP themed + cache + gzip enabled + Avast AV + Chrome == Problem

2013-11-04 Thread Salines
Hi, José Lorenzo thanks for your reply. I removed my code from bootstrap.php and .htaccess file and put in the app controller following: --- public function beforeRender(){ $this->response->compress(); } --- Website is now working correctly, and the server delivers gzipped html. How to enable

Re: CakePHP themed + cache + gzip enabled + Avast AV + Chrome == Problem

2013-11-04 Thread José Lorenzo
: > > Hi people, > > I have a problem, wich I can not solve. > > on page www.detas.ba I have enabled cache and gzip. Views, css, js, are > in the themed folder. (App/View/Themed/Detas/...) > > On my computer I use Chrome browser and Avast antivirus program. > > When I ac

Re: CakePHP themed + cache + gzip enabled + Avast AV + Chrome == Problem

2013-11-04 Thread Salines
I forgot to write that I use the latest version of CakePHP Framework 2.4.2 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from th

CakePHP themed + cache + gzip enabled + Avast AV + Chrome == Problem

2013-11-04 Thread Salines
Hi people, I have a problem, wich I can not solve. on page www.detas.ba I have enabled cache and gzip. Views, css, js, are in the themed folder. (App/View/Themed/Detas/...) On my computer I use Chrome browser and Avast antivirus program. When I access a page on eg http://detas.ba/sat/792

Re: how to get cache file name in arabic language

2013-09-27 Thread Eric Haskins
e a slug in > Arabic characters but my problem is that the cache file name show > characters like Ù«, ØÃ, ì, ù, à in place of normal characters. > > example : > post_من-نحن ==> the slug is: من-نحن > > post_٬مŠ-ومدØ٠ع-كمروي-ÙÙŠ-تØرÙات-Ø§Ø§Ø > > so how

Re: how to get cache file name in arabic language

2013-09-27 Thread Anja Liebermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mokdij, interesting problem. Is just the file name messed up or is it also the cache content? If it is "just" the file name then the challenge is to find something which is connectetd to the real string but writeable in Ascii. How abou

how to get cache file name in arabic language

2013-09-26 Thread Mokdij
I am developing a website in Arabic language, i need to use a slug in Arabic characters but my problem is that the cache file name show characters like Ù«, ØÃ, ì, ù, à in place of normal characters. example : post_من-نحن ==> the slug is: من-نحن post_٬مŠ-ومدØ٠ع-كمروي-ÙÙŠ-Ø

Check Cache view

2013-09-17 Thread localhost
Hello First let me thank you Cakephp team for this amazing Caching system, very easy to use and saved us a lot of time. Just one question . Currently I'm using cache view for a page that require a lot of time to generate, (i'm using the data generation in the controller and then

Re: clear element cache cakphp 2.0

2013-09-05 Thread Dinesh Kumar
Hi, somehow element_unique is working now. On Wednesday, September 4, 2013 3:00:17 PM UTC+5:30, Dinesh Kumar wrote: > > i have similar issue.here is my code: > $this->element('app_images', array(), array('cache' => array('config' > =>

Re: clear element cache cakphp 2.0

2013-09-04 Thread Dinesh Kumar
i have similar issue.here is my code: $this->element('app_images', array(), array('cache' => array('config' => 'default', 'key' => 'unique'))); my cache named: cake_element_unique i have tried below methods but none of them

Re: Cache Help

2013-08-01 Thread Reuben
Oh, nice. My original reply was deleted. Anyhoo, I might suggest that you only clear the cache for the particular Form(s) that were deleted or saved, using Cache::delete('getFormsById' . $id). Although you may need to double check the event of multiple Forms being saved or deleted

Re: Cache Help

2013-08-01 Thread Eric Haskins
Here is one of my models for dynamic forms. I hope it helps this is CakePHP 2.x so I clear cache afterSave (editing a forms structure) or afterDelete (selfexplanatory) class Forms extends AppModel { public $primaryKey = 'id'; public function afterSave($created) {

Re: Cache Help

2013-07-29 Thread jmn2k1
You must "invalidate" the cache, ie, delete the cache in a onSave callback. On Friday, July 26, 2013 9:05:30 PM UTC-3, advantage+ wrote: > > Maybe I was reading wrong but I was under the impression if you cache an > object (find data) if it was different it would delete

Re: Cache Help

2013-07-28 Thread Reuben
locations. Regards Reuben Helms On Saturday, 27 July 2013 10:05:30 UTC+10, advantage+ wrote: > > Maybe I was reading wrong but I was under the impression if you cache an > object (find data) if it was different it would delete the original cached > data. > > > > I am cac

Cache Help

2013-07-26 Thread Advantage+
Maybe I was reading wrong but I was under the impression if you cache an object (find data) if it was different it would delete the original cached data. I am caching the results of a find, but as admin if I edit the record the cached data is always returned not the new data. Is ther a way

Re: Strange cache behavior in console scripts

2013-06-24 Thread Simon Males
instead it exists in the DB). > Again everything works with CORE_DEBUG > 0. > > The workaround has been deleting the files in: > /lib/Cake/Console/Templates/skel/tmp/cache/models/ > > Some questions: > >1. Why are not the cache files being updated? What is the cache

Strange cache behavior in console scripts

2013-06-24 Thread Chris Cinelli
. The workaround has been deleting the files in: /lib/Cake/Console/Templates/skel/tmp/cache/models/ Some questions: 1. Why are not the cache files being updated? What is the cache logic? 2. In ShellDispatcher.php in function _bootstrap(), There is this: if (!is_dir(ROOT

Re: Cache Implement on ACL

2013-05-23 Thread rchavik
> >- *D**atabase is normalized properly* >- *I**ndex field properly* >- *T**able engine is innoDB*. > > > I get little improvement but that's not sufficient. So i think if i can > implement cache on ACL that will help me > > So i need help

Re: How to use Cache Helper and execute UPDATE query on every URL request?

2013-05-17 Thread Salines
$this->viewClass = 'Media'; > render a 1x1px image. > } > > hth, > > AD > > On Friday, 17 May 2013 00:33:24 UTC+2, Salines wrote: >> >> Hi, >> I use the Cache Helper, to cache my views, but now I need to implement a >>

Re: How to use Cache Helper and execute UPDATE query on every URL request?

2013-05-17 Thread AD7six
h a valid image: function record_view($id) { $this->Article->updateAll(array('views' => 'views + 1')); $this->viewClass = 'Media'; render a 1x1px image. } hth, AD On Friday, 17 May 2013 00:33:24 UTC+2, Salines wrote: >

How to use Cache Helper and execute UPDATE query on every URL request?

2013-05-16 Thread Salines
Hi, I use the Cache Helper, to cache my views, but now I need to implement a simple UPDATE query in my view() action. When I use the cached views, CakePHP skip actions in the the controller? I want to record the number of hits on each article! Can someone point me in the right direction

Cache Initiation

2013-05-13 Thread BarbarianGeek
When and where during application startup does the Cache get initiated and the $_map property of App.php get set? I can't figure out where this gets initiated and a lot of my paths are misconfigured when I run a console shell. Its probably some weird configuration I have incorrectly set

Bug in Cache/CacheEngine.php at Line 60 wehnelt i use netbeans plugin

2013-05-03 Thread Jacques Levavasseur
I add date_default_timezone_set('Europe/Paris') because Therese si an error Wotherspoon strtotime -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group

Cache Rest

2013-04-12 Thread Leonardo Jorge Dias Carmo
Sup guys, I'm developing a rest api for an app with cakephp to be consumed by smarthphones, and i need to make a cache of data. I already make cache of queries with apc, but i still have traffic with this... i'll probably use http cache expire, but when expire, the data can be the

Memcache Cache::read help

2013-04-11 Thread Advantage+
quot; South Dakota";i:56;s:9:"Tennessee";i:57; s:5:"Texas";i:58;s:4:"Utah";i:61;s:7:"Ve rmont";i:60;s:14:"Virgin Islands";i:59;s :8:"Virginia";i:62;s:10:"Washington";i:6 4;s:13:"West Virginia";i:63;s:9:"Wiscons

Re: unserialize() [function.unserialize]: Error at offset 0 of 4283 bytes [CORE\Cake\Cache\Engine\FileEngine.php, line 197]

2013-04-09 Thread Jeremy Burns : Class Outfit
Clear all files (not folders) in /app/tmp/cache and try again. Jeremy Burns Class Outfit http://www.classoutfit.com On 9 Apr 2013, at 08:36, Sandip Das wrote: > Please hgelp me , i am gettinh this notice in > CakePHP 2.3.2. > > > -- > Like Us on FaceBook https://www.fa

unserialize() [function.unserialize]: Error at offset 0 of 4283 bytes [CORE\Cake\Cache\Engine\FileEngine.php, line 197]

2013-04-09 Thread Sandip Das
Please hgelp me , i am gettinh this notice in CakePHP 2.3.2. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and

Re: Cache::clearGroup in model and component building cache again

2013-02-26 Thread LDSign
build the navigation for > every individual user. The navigation is database driven so caching is a > good idea - so far so good > > The cache is built in the startup-callback of the component like so > (package and agent is just an example): > > > public function initialize

Cache::clearGroup in model and component building cache again

2013-02-26 Thread LDSign
Hi I have ran into a problem which drives me crazy :( Ive a component which is used on every page to build the navigation for every individual user. The navigation is database driven so caching is a good idea - so far so good The cache is built in the startup-callback of the component like so

cakephp 2 disabled cache after save

2013-02-25 Thread Lolalola
Hi, after insert or delete i don't wish delete view cache, but cake do it automatically. How disabled clear cache after save, delete functions? My try, but still the same: if($this->User->save($data, array('callbacks' => false))) Thanks -- Like Us on FaceBook

Re: Cache errors on Heroku with update to 2.3 but works fine on local?

2013-02-14 Thread Brad Koch
eral-filesystem [2] https://github.com/cakephp/cakephp/blob/master/.gitignore On Sat, Feb 9, 2013 at 12:28 PM, Simon Males wrote: > Issue is not CakePHP 2.3 specific. Heroku is a read only file system[1]. > > Though you can write to /tmp. So in core.php, when setting > Cache::config() update

Re: Cache errors on Heroku with update to 2.3 but works fine on local?

2013-02-09 Thread Simon Males
Issue is not CakePHP 2.3 specific. Heroku is a read only file system[1]. Though you can write to /tmp. So in core.php, when setting Cache::config() update the value of the 'path' key to '/tmp'. I've also shared my production Cache::config() settings[2]. [1] https://devc

Re: Cache errors on Heroku with update to 2.3 but works fine on local?

2013-02-08 Thread Shahruk Khan
> I just updated my cake application to 2.3 and I started getting internal > errors on my heroku application. > > *Warning* (512): /app/www/app/tmp/cache/ is not writable > [*CORE/Cake/Cache/Engine/FileEngine.php*, line *336*] > > *Warning* (2): file_put_contents(/app/www/app

Re: Cache errors on Heroku with update to 2.3 but works fine on local?

2013-02-08 Thread Brad Koch
Ran into the same problem with a new Heroku app of ours. However, we've been running the file cache on an older app for over a year and never had problems. (Both are on the cedar stack.) Did you ever get to the bottom of this? I assume it has something to do with Heroku's philosop

Re: Using CacheHelper to cache JSON views

2013-01-31 Thread erictr1ck
'json';$this->view = 'feed';$this->set( 'data', $data ); > > > This works somewhat. I get the JSON file the first time, but when I > request that action again, the response contains > > > > > before the actual JSON data, so

Re: Cache errors on Heroku with update to 2.3 but works fine on local?

2013-01-30 Thread Shahruk Khan
Here's the thing - Heroku uses EC2, meaning that any files written are deleted on Git push. But I think you're right, so I'm gonna contact Heroku support the moment I get the chance. Thanks On Wednesday, January 30, 2013 7:51:12 AM UTC-5, Luciano Bargmann wrote: > > First things first: I am alm

Cache errors on Heroku with update to 2.3 but works fine on local?

2013-01-30 Thread Luciano Bargmann
First things first: I am almost sure you have a write permission problem. Have you tried to fix that? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" g

Cache errors on Heroku with update to 2.3 but works fine on local?

2013-01-29 Thread Shahruk Khan
I just updated my cake application to 2.3 and I started getting internal errors on my heroku application. *Warning* (512): /app/www/app/tmp/cache/ is not writable [*CORE/Cake/Cache/Engine/FileEngine.php*, line *336*] *Warning* (2): file_put_contents(/app/www/app/tmp/logs/error.log) [http

Re: Cache::cleargroup() doesn't make sense to me

2013-01-17 Thread stork
> But then why does cleargroup() take a config as a parameter which defaults > to "default"? > Cake needs to know which engine and prefix you want to use for cleargroup(). > Am I missing something? > You're probably missing ClearCache plugin - it allows to cl

Cache::cleargroup() doesn't make sense to me

2013-01-16 Thread bbf
According to: http://book.cakephp.org/2.0/en/core-libraries/caching.html#using-groups "Groups are shared across all cache configs using the same engine and same prefix. If you are using groups and what to take advantage of group deletion, choose a common prefix for all your configs."

Re: modifying cache times based on API call

2012-10-16 Thread Greg Skerman
API which provides values that are intended to instruct > the consumer on how long to cache a result for. Different API calls have > different cache times (and these cache times may be variable, so setting up > a config for each possible outcome is out of the question). > > Essentially

modifying cache times based on API call

2012-10-14 Thread Greg Skerman
Hi, I am connecting an API which provides values that are intended to instruct the consumer on how long to cache a result for. Different API calls have different cache times (and these cache times may be variable, so setting up a config for each possible outcome is out of the question

Memory Cache not release after 3 or 4 query is running.

2012-09-14 Thread Ratha
Hi , I am having a problem that CakePHP is not release the cache from my server memory. we have 2 GB of RAM. after users visit 5 or 6 time the server memory start to increase from 1.2 GB to 1.9GB some time it crush our server. Any idea how to clear this cache from memory. for my core file i

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-08-24 Thread Johnny Perk
then moving it to a PHP 5.1 server. Upgrading to 5.2.17 (which is above > 5.2.8) solved the problem. > > > On Saturday, February 18, 2012 2:50:13 AM UTC+7, D Mahoney wrote: >> >> That suggestion sounds reasonable. Tried that, but still have same >> issue. >>

Re: Weird Cake 2 cache issue when sorting

2012-08-15 Thread Devario Johnson
ok I found the solution. Here it is for anyone that needs it Not sure why any of the other clear caching methods didnt work but in the controller this worked for me $this->disableCache(); -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: Weird Cake 2 cache issue when sorting

2012-08-15 Thread Devario Johnson
o sort = old cached data from previous sort comes back > > How do I disable this? > > DBDataHere > > Doesnt seem to affect it > > *interesting tidbit, on my local machine, the nocacheblocks works and this > doesnt happen...when I up it to the server...I see this behavio

Weird Cake 2 cache issue when sorting

2012-08-15 Thread Devario Johnson
happen...when I up it to the server...I see this behavior. any ideas? Cache folder is fully writable, (though im thinking this may be a local browser thing???) -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this g

Re: Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

2012-08-10 Thread Ryan Willis
: > What is the error you are getting then attempting to re-write cache? > OR is it that the code is not reaching the write to cache stage? > > Tarique > > On Thu, Aug 9, 2012 at 10:03 PM, Ryan Willis wrote: > > Howdy :) > > > > To give you a feel for the env

Re: Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

2012-08-09 Thread Dr. Tarique Sani
What is the error you are getting then attempting to re-write cache? OR is it that the code is not reaching the write to cache stage? Tarique On Thu, Aug 9, 2012 at 10:03 PM, Ryan Willis wrote: > Howdy :) > > To give you a feel for the environment, we have a highly available > conf

Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

2012-08-09 Thread Ryan Willis
Howdy :) To give you a feel for the environment, we have a highly available configuration of two load balanced web servers and two database servers (master/slave). We are using CakePHP 2.2.1 on NginX and PHP-FPM with PHP 5.4. We are noticing intermittent cache write failures despite having

Using CacheHelper to cache JSON views

2012-07-27 Thread Falagar
time, but when I request that action again, the response contains before the actual JSON data, so it won't work for my client app. I can see that chunk of text in the actual cache file as well, which I think is the problem. So I am not quite sure how to proceed. Am I just missing something pa

Re: how clear cache this view

2012-07-21 Thread Thiago Belem
b *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt On Sat, Jul 21, 2012 at 12:10 PM, Điển vũ wrote: > I have a page with url : *http://example.com/threads/**một wiki và diễn > đàn tự do về* (controller/slug) > cached

how clear cache this view

2012-07-21 Thread Điển vũ
I have a page with url : *http://example.com/threads/**một wiki và diễn đàn tự do về* (controller/slug) cached in tmp/cache/views/* threads_view_m_e1_bb_99t_wiki_v_c3_a0_di_e1_bb_85n_c4_91_c3_a0n_t_e1_bb_b1_do_v_e1.php * how can i clear cache this page ? -- Our newest site for the community

Re: Cache::delete not working.

2012-07-17 Thread ianemv
More than a year, have you solved or find out a solution to this issue? On Monday, 23 May 2011 12:44:44 UTC+8, Krissy Masters wrote: > > Not sure why it won’t delete. > > > > I even handcoded it and put the code in the controller view function to > test out that there

Re: Cake 2.1 Method Cache

2012-05-11 Thread José Lorenzo
Yes, it is possible, it is the compilation of all queries that your application usually does. El domingo, 6 de mayo de 2012 18:56:21 UTC-4:30, Mika escribió: > > The array has 500,000 entries in the [name] index! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.o

Re: Cake 2.1 Method Cache

2012-05-06 Thread Mika
The array has 500,000 entries in the [name] index! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send em

Cake 2.1 Method Cache

2012-05-06 Thread Mika
Is it normal for /app/tmp/cache/persistent/ [cacheprefix]_cake_core_method_cache to be around 20MB in size? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-05-06 Thread Joseph
above 5.2.8) solved the problem. On Saturday, February 18, 2012 2:50:13 AM UTC+7, D Mahoney wrote: > > That suggestion sounds reasonable. Tried that, but still have same issue. > > I changed the cache config to add 'mask' => 0666 in > app/Config/bootstrap.php

Re: CakePHP Cache Help Needed

2012-04-21 Thread stork
- rewrite this component as a helper - use cached element http://book.cakephp.org/2.0/en/views.html#caching-elements - done If you want to keep your code as a component, use beforeRender() callback instead of beforeFilter(), example: # app/Config/bootstrap.php Cache::config('short&#x

CakePHP Cache Help Needed

2012-04-20 Thread creat1v1ty
Does anyone have experience with Cake cache who's willing to lend me a hand? Here is my situation: In the footer of my website I am pulling in my 3 most recent blog posts from Wordpress.com (the website, not a local installation). The way I am accomplishing this is by parsing the XML feed

Re: CakePHP 1.3 and Cache read in error views

2012-04-13 Thread Michał Piotrowski
I solved my problem... solutions is: Cache::read(cacheName,'cacheConfigName'); in the errors views default config doesn't works automatically... -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Ques

CakePHP 1.3 and Cache read in error views

2012-04-13 Thread Michał Piotrowski
Hello! I'm using in views code like this: $var = Cache::read(cachName); And works fine with one exception, with ErrorHandler... in errors views Cake can't read cache? Maybe I shouldn't use 'read cache' in views? -- Our newest site for the community: Cake

Re: Cache errors

2012-04-01 Thread Jeremy Burns | Class Outfit
//www.classoutfit.com >> >> On 1 Apr 2012, at 11:02:29, 0x20h wrote: >> >>> Have you configured your cache with "lock" => true ? >>> >>> Am 31.03.2012 07:13, schrieb Jeremy Burns: >>>> Although my site and cache is function

Re: Cache errors

2012-04-01 Thread 0x20h
resolves it. > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 1 Apr 2012, at 11:02:29, 0x20h wrote: > >> Have you configured your cache with "lock" => true ? >> >> Am 31.03.2012 07:13, schrieb Jeremy Burns: >>> A

Re: Cache errors

2012-04-01 Thread Jeremy Burns | Class Outfit
Thanks - I hadn't realised that was an option. Have set and tested it and will monitor to see if that resolves it. Jeremy Burns Class Outfit http://www.classoutfit.com On 1 Apr 2012, at 11:02:29, 0x20h wrote: > Have you configured your cache with "lock" => true ? >

Re: Cache errors

2012-04-01 Thread 0x20h
Have you configured your cache with "lock" => true ? Am 31.03.2012 07:13, schrieb Jeremy Burns: > Although my site and cache is functioning, my debug log is littered > with errors similar to this: > > 2012-03-30 23:45:28 Notice: Notice (8): unserialize() [ h

Cache errors

2012-03-30 Thread Jeremy Burns
Although my site and cache is functioning, my debug log is littered with errors similar to this: 2012-03-30 23:45:28 Notice: Notice (8): unserialize() [function.unserialize]: Error at offset 4065 of 4085 bytes in [/var/www/clients/client1/_sites/cakes/1_3_13/ cake/libs/cache/file.php, line 190

Re: After a while Cache is not writeable

2012-03-30 Thread stork
You'll have to configure that for _cake_core_ cache, see http://book.cakephp.org/2.0/en/development/configuration.html#core-cache-configuration -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakeph

Re: After a while Cache is not writeable

2012-03-30 Thread stork
This happens if you run console shell/task as root user with su or cron. Either specify user www-data in crontab, or change cache configuration to 'mask' => 0644, or - don't use FileEngine in production. -- Our newest site for the community: CakePHP Video Tutorials htt

After a while Cache is not writeable

2012-03-30 Thread Kai Szymanski
Hi! I have a strange problem with my cakephp-Installation on Ubuntu 10.04 Server: Everything works fine but after a while i get the warning: fopen(/rootdir/cakephp/app/tmp/cache/persistent/cake_core_default_de- de) [function.fopen]: failed to open stream: Permission denied [CORE/ cake/libs/cache

cache helper isnt aware of routes?

2012-03-27 Thread K3
I have implemented view caching on my app and it works fine it caches view method from posts controller (posts/view) However, after i added Router::connect('/', array('controller' => 'posts', 'action' => 'view',1)); it wont cache th

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-20 Thread Lucho Molina
Makes sense, thanks. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@go

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-20 Thread Thomas Ploch
You can tell cronjobs under which user it should run. For your case apparantly it should be the apache user. The default mask value '0664' was intentional because of security issues. Try 'sudo -u {apache-user} cake {shellname} {command}' or set the default mask in core.php __before__ you use th

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-20 Thread Lucho Molina
I'm with you @huoxito. This seems to be an issue introduced in 2.0 as I never had it on 1.3. Anyway, I tried the 'mask' => 0666 solution but didn't work. I'm also running shell scripts on a cron, so every time it ran, the persmissions were changed. So my temporary solution was to add the Apach

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-19 Thread huoxito
Still dont understand why CakePHP 2.x has this kind of issue, getting permissions errors for command line user and apache user. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-18 Thread 0x20h
t; > Am 17.02.2012 20:50, schrieb D Mahoney: >> That suggestion sounds reasonable. Tried that, but still have same >> issue. >> >> I changed the cache config to add 'mask' => 0666 in >> app/Config/bootstrap.php (Cache::config('default', array(

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-18 Thread 0x20h
issue. > > I changed the cache config to add 'mask' => 0666 in > app/Config/bootstrap.php (Cache::config('default', array('engine' => > 'File', 'mask' => 0666));), then deleted the cache files with > "find ./*/tmp/cache -type

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-17 Thread Bowei
I experienced today after creating shell scripts in command line. The cache dir was writeable by apache user. I chown the cache file to apache user, and the warning disappeared. On Feb 17, 11:10 am, 0x20h wrote: > try to set the 'mask' => 0666 option for the file cache

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-17 Thread D Mahoney
That suggestion sounds reasonable. Tried that, but still have same issue. I changed the cache config to add 'mask' => 0666 in app/Config/bootstrap.php (Cache::config('default', array('engine' => 'File', 'mask' => 0666));), then delete

Re: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-17 Thread 0x20h
try to set the 'mask' => 0666 option for the file cache (in boostrap.php), then delete all cache files. The Problem occurs when you create the cache files under different users (e.g. from cli and lighttpd as www-data) Am 17.02.2012 16:28, schrieb CatDude: > Greetings, all. I&#x

PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/persistent/cake_core_file_map)

2012-02-17 Thread CatDude
Greetings, all. I'm helping a friend debug his CakePHP install and am encountering the message in the subject. Specifically, I see a lot of : 2012-02-17 15:20:06: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Warning: SplFileInfo::openFile(/srv/www/lighttpd/app/tmp/cache/ persi

Re: Newbie question: Disable Cache

2012-01-26 Thread rocha9000
This issue has been resolved. It turned out to be my webhost caching the generated cache files. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

  1   2   3   4   5   6   7   8   9   >