Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Allow involved processor to change the cache key #508

Closed
wants to merge 1 commit into from

Conversation

elia
Copy link
Contributor

@elia elia commented Dec 4, 2013

While many processor can afford using cached assets as long as the sources didn't change some needs to invalidate all the caches between versions.

E.g.: currently when Opal is upgraded and a file store is used the cache store folder must be removed (i.e. tmp/cache/assets under rails).

If it's conceptually ok I'll add tests

cc @adambeynon

While many processor can afford using cached assets as long as the 
sources didn't change some needs to invalidate all the caches between
versions. 

E.g.: currently when Opal is upgraded and a file store is used the cache store folder must be removed (i.e. tmp/cache/assets under rails).
elia added a commit to opal/opal that referenced this pull request Dec 7, 2013
@josh
Copy link
Contributor

josh commented Feb 9, 2014

As of 3.0, the Tilt template interface will be deprecated. Process will just be callables, so there won't be any metadata on them.

I think another way I thought to expose this was adding a cache bust to the register api. So Opal could do something like

register_engine '.opal', Opal::VERSION, Opal.compile

@josh josh closed this Feb 9, 2014
@elia elia mentioned this pull request Dec 1, 2014
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants