[FX.php List] NeoCache
Nick
whatdoyouwant at gmail.com
Thu Aug 18 12:56:33 MDT 2011
oh and there may be some outdated warning about it not working on windows in
the comments.. I use on windows and linux and mac, it's fine.
On Thu, Aug 18, 2011 at 1:53 PM, Nick <whatdoyouwant at gmail.com> wrote:
> here
>
> http://dl.dropbox.com/u/13944361/FXneocache-ecsos.php.zip
>
> I've used this in production for years now.
> You use it like normal, and then
>
> $your_find->tmpdir = ini_get('session.save_path'); // optional, but '/tmp'
> is the default. in my apps i set it to the session save path, which I modify
> beforehand.
> $your_find->unique = 'yourpagename/uniquequeryname1';
> $your_find->lifetime = 15; // minutes to keep in cache
>
> $your_find_result = $your_find->FMCacheFind();
>
> and please keep in mind that I doubt the mysql part of this code works well
> because I haven't tested it or tried it since forever.
>
> also I haven't tried including this over vanilla fx.php.. your milage may
> vary.. I used a customized version of FX.php version 4.51 as well (dds a few
> functions for findquery command, disables the page linking because of some
> error I was getting at some point)
>
> anyway please let me know how it goes.
>
> Nick
>
>
> On Sun, Aug 14, 2011 at 10:40 PM, Stephe Pocock <zippyaus at yahoo.com>wrote:
>
>> Hi Nick
>>
>> Would you consider sharing your modified code for Neocache?
>>
>> Cheers
>>
>> ZP
>>
>> ------------------------------
>> *From:* Nick <whatdoyouwant at gmail.com>
>> *To:* FX.php Discussion List <fx.php_list at mail.iviking.org>
>> *Sent:* Wednesday, 10 August 2011 12:59 PM
>> *Subject:* Re: [FX.php List] NeoCache
>>
>> i use this but i have a modified version that lets me specify the unique
>> folder/path and the timeout, and only works filebased(not mysql)
>>
>> On Thu, Jun 23, 2011 at 5:49 PM, david weiner <1265 at lucerneblvd.org>wrote:
>>
>> I also use neocache.
>> As far I know it works by caching all the requests on load, maybe if you
>> split your requests up so you do the first request on a page and then pass
>> everything over to a second page for the second request it would work.
>>
>>
>> On Jun 22, 2011, at 6:36 PM, Stephe Pocock wrote:
>>
>> Hi all
>>
>> Is anyone using this? I use it a bit and have just tried to use it on a
>> page where I have two arrays/finds
>>
>> It results in the same returned results being displayed.
>>
>> Does anyone know how I can use the cache twice on the same page?
>>
>> <?php
>>
>> define('DEBUG', FALSE);
>>
>> include_once("../FX/FX.php");
>> include_once('FXneocache/FXneocache.php');
>> include_once("../FX/server_data.php");
>> include_once("../FX/FMErrors.php");
>>
>> $Group=$_REQUEST['Group'];
>>
>> $cat2=new FXneocache($serverIP,$webCompanionPort,'FMPro7');
>> $cat2->setDBData('Events.fp7','PHPWeb', '500');
>> $cat2->SetDBUserPass('xxx', 'xxx');
>>
>> $today = date("m/d/Y");
>>
>> $cat2->AddDBParam('Group Lookup',$Group);
>> $cat2->AddDBParam('Status','Active');
>> $cat2->AddDBParam('CD Type','Court Date');
>> $cat2->AddDBParam('Task Date',$today);
>>
>> $cat2->AddSortParam('Task Date','ascend');
>>
>> $cat2Result=$cat2->FMCacheFind();
>> foreach ($cat2Result['data'] as $key => $cat2Data) ;
>>
>>
>>
>> $cat=new FXneocache($serverIP,$webCompanionPort,'FMPro7');
>> $cat->setDBData('Events.fp7','PHPWeb', '500');
>> $cat->SetDBUserPass('xxx', 'xxx');
>>
>> $tomdate = mktime(0,0,0,date("m"),date("d")+1,date("Y"));
>> $fromdate = date("m/d/Y", $tomdate);
>>
>> $todate = mktime(0,0,0,date("m"),date("d")+14,date("Y"));
>> $nextdate = date("m/d/Y", $todate);
>>
>> $cat->AddDBParam('Group Lookup',$Group);
>> $cat->AddDBParam('Status','Active');
>> $cat->AddDBParam('CD Type','Court Date');
>> $cat->AddDBParam('Task Date',$fromdate.'...'.$nextdate);
>>
>> $cat->AddSortParam('Task Date','ascend');
>>
>> $catResult=$cat->FMCacheFind();
>> foreach ($catResult['data'] as $key => $catData)
>>
>> ?>
>>
>> Cheers
>>
>> Stephen
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20110818/c5b32e97/attachment-0001.html
More information about the FX.php_List
mailing list