Deletion of a cache...

View: New views
5 Messages — Rating Filter:   Alert me  

Deletion of a cache...

by Gary Clark-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

I see you can delete a cache by using Cache_Delete, and you can offer  
up a name, but can you also issue a type, so you can delete multiple  
domains?

Many thanks

Gary Clark

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: Deletion of a cache...

by Adam de Zoete-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gary,

As far as i'm aware the Cache tags are functional within a LassoSite. If
you have multiple domains pointing to that site, Cache_Delete is going
to remove from them all.

I am not aware of a method for using Cache_Delete over multiple
LassoSites, but would be interested if anyone knew how?

Adam



Gary Clark wrote:
> Hi list,
>
> I see you can delete a cache by using Cache_Delete, and you can offer up
> a name, but can you also issue a type, so you can delete multiple domains?
>
> Many thanks
>
> Gary Clark
>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: Deletion of a cache...

by Gary Clark-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

Yes, the issue I have is that the CMS admin area is within my domain,  
whereas the cache resides within the client domain, so I am unable to  
delete the cache from the live client site from the admin under my  
domain!

So, being able to pass the -Type or domain would be great. As the  
admin can do this, I assume there is a way to get 'hold' of cross  
domain caches and delete them.

Many thanks

Gary Clark


On 2 Jul 2008, at 11:17, Adam de Zoete wrote:

> Hi Gary,
>
> As far as i'm aware the Cache tags are functional within a  
> LassoSite. If you have multiple domains pointing to that site,  
> Cache_Delete is going to remove from them all.
>
> I am not aware of a method for using Cache_Delete over multiple  
> LassoSites, but would be interested if anyone knew how?
>
> Adam
>
>
>
> Gary Clark wrote:
>> Hi list,
>> I see you can delete a cache by using Cache_Delete, and you can  
>> offer up a name, but can you also issue a type, so you can delete  
>> multiple domains?
>> Many thanks
>> Gary Clark
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: Deletion of a cache...

by Jason Huck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When the "host-specific caches" option is enabled, the server name is
appended to the cache name with a pipeline character for storage in a
global variable called $_Cache_Storage. That's really the only
difference. So, I guess it's *possible* that this might work:

cache_delete('mycache' + '|' + server_name);

...depending on how the cache_delete tag is coded. But assuming that
it doesn't, you could create your own tag to operate directly on the
$_Cache_Storage global variable.

See this tag for an example:

http://tagswap.net/cache_info/


- jason



On Wed, Jul 2, 2008 at 7:13 AM, Gary Clark <gary@...> wrote:

> Hi list,
>
> Yes, the issue I have is that the CMS admin area is within my domain,
> whereas the cache resides within the client domain, so I am unable to delete
> the cache from the live client site from the admin under my domain!
>
> So, being able to pass the -Type or domain would be great. As the admin can
> do this, I assume there is a way to get 'hold' of cross domain caches and
> delete them.
>
> Many thanks
>
> Gary Clark
>
>
> On 2 Jul 2008, at 11:17, Adam de Zoete wrote:
>
>> Hi Gary,
>>
>> As far as i'm aware the Cache tags are functional within a LassoSite. If
>> you have multiple domains pointing to that site, Cache_Delete is going to
>> remove from them all.
>>
>> I am not aware of a method for using Cache_Delete over multiple
>> LassoSites, but would be interested if anyone knew how?
>>
>> Adam
>>
>>
>>
>> Gary Clark wrote:
>>>
>>> Hi list,
>>> I see you can delete a cache by using Cache_Delete, and you can offer up
>>> a name, but can you also issue a type, so you can delete multiple domains?
>>> Many thanks
>>> Gary Clark
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>



--
tagSwap.net :: Open Source Lasso Code
<http://tagSwap.net/>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: Deletion of a cache...

by Gary Clark-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi List | Jason

You know what Marc Pope has resolved this for me, but, it was with a  
very simple approach, he just told me to do an include_url in the  
moderation process that passes an action param with the name of the  
cache, I then process the cache delete within the actual domain, so  
simple I just did not see it! It may not be the most scalable  
approach, but it works and is SIMPLE to integrate.

I like Marc!

Many thanks

Gary Clark


On 2 Jul 2008, at 12:42, Jason Huck wrote:

> When the "host-specific caches" option is enabled, the server name is
> appended to the cache name with a pipeline character for storage in a
> global variable called $_Cache_Storage. That's really the only
> difference. So, I guess it's *possible* that this might work:
>
> cache_delete('mycache' + '|' + server_name);
>
> ....depending on how the cache_delete tag is coded. But assuming that
> it doesn't, you could create your own tag to operate directly on the
> $_Cache_Storage global variable.
>
> See this tag for an example:
>
> http://tagswap.net/cache_info/
>
>
> - jason
>
>
>
> On Wed, Jul 2, 2008 at 7:13 AM, Gary Clark <gary@...> wrote:
>> Hi list,
>>
>> Yes, the issue I have is that the CMS admin area is within my domain,
>> whereas the cache resides within the client domain, so I am unable  
>> to delete
>> the cache from the live client site from the admin under my domain!
>>
>> So, being able to pass the -Type or domain would be great. As the  
>> admin can
>> do this, I assume there is a way to get 'hold' of cross domain  
>> caches and
>> delete them.
>>
>> Many thanks
>>
>> Gary Clark
>>
>>
>> On 2 Jul 2008, at 11:17, Adam de Zoete wrote:
>>
>>> Hi Gary,
>>>
>>> As far as i'm aware the Cache tags are functional within a  
>>> LassoSite. If
>>> you have multiple domains pointing to that site, Cache_Delete is  
>>> going to
>>> remove from them all.
>>>
>>> I am not aware of a method for using Cache_Delete over multiple
>>> LassoSites, but would be interested if anyone knew how?
>>>
>>> Adam
>>>
>>>
>>>
>>> Gary Clark wrote:
>>>>
>>>> Hi list,
>>>> I see you can delete a cache by using Cache_Delete, and you can  
>>>> offer up
>>>> a name, but can you also issue a type, so you can delete multiple  
>>>> domains?
>>>> Many thanks
>>>> Gary Clark
>>>
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
>
>
> --
> tagSwap.net :: Open Source Lasso Code
> <http://tagSwap.net/>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/