Save cache should run in sync to ensure file exists
This commit is contained in:
parent
03574cf6d0
commit
95973b73f8
@ -204,7 +204,7 @@ class BotanClassResolver:
|
||||
return cFHash if self.returnHash else self.BotanCache( cFile )
|
||||
|
||||
elif self.useCache( oFile, dates ):
|
||||
self.JWork.saveCache.delay(
|
||||
self.JWork.saveCache(
|
||||
oFile
|
||||
# Content is None to initiate a compression
|
||||
, None
|
||||
@ -253,7 +253,7 @@ class BotanClassResolver:
|
||||
|
||||
outputJs = wrapScope( outputJs )
|
||||
|
||||
[ self.JWork.saveCache if self.returnHash else self.JWork.saveCache.delay ][0] (
|
||||
[ self.JWork.saveCache if self.returnHash else self.JWork.saveCache ][0] (
|
||||
os.path.join( self.CR, md5[0] )
|
||||
, outputJs
|
||||
, "js"
|
||||
|
@ -25,7 +25,6 @@ else:
|
||||
|
||||
class JWork:
|
||||
|
||||
@app.task()
|
||||
def saveCache( location, content = None, mode = None, externs = "" ):
|
||||
if content != None:
|
||||
log.info( "Writing file(" + str( len( content ) ) + "): " + os.path.abspath( location ) )
|
||||
|
Loading…
Reference in New Issue
Block a user