Skip to content

Commit

Permalink
rev and caching
Browse files Browse the repository at this point in the history
  • Loading branch information
nate-parrott committed Apr 13, 2015
1 parent d76ac18 commit 40bc265
Show file tree
Hide file tree
Showing 22 changed files with 57 additions and 14 deletions.
1 change: 1 addition & 0 deletions PluginDirectories/1/FontAwesome.bundle/1.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
be7d2b87983cb9f4f9530958759c39ee16b4fb5be754f8129727c6288c9aa5f4
1 change: 0 additions & 1 deletion PluginDirectories/1/choc.bundle/2.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/choc.bundle/3.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
08585d42ac7de3e6f3f19e449f689a50db3f45897b270e2a26066bc997e596bb
1 change: 0 additions & 1 deletion PluginDirectories/1/dockerImageSearch.bundle/1.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/dockerImageSearch.bundle/2.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
64ff71816dea8a0c46f844e8b3e30adc95ff74b30c34f12c0bdc4837a23c5769
1 change: 0 additions & 1 deletion PluginDirectories/1/fasttweet.bundle/1.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/fasttweet.bundle/2.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9cf5962f2757e692f5a4ed4973757755c19a2d2641b1289764ec2c88ff61b3c1
1 change: 1 addition & 0 deletions PluginDirectories/1/hide-desktop-icons.bundle/1.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
01412844f05dacf677e86db503e93772c7b72160755d0f65a17f0a66fde01d2c
1 change: 0 additions & 1 deletion PluginDirectories/1/im-feeling-lucky.bundle/1.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/im-feeling-lucky.bundle/2.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
88da3ef630ca3592faaabb8fa864c42e9bd33fdbc9b2048b59faab062f0036b0
40 changes: 37 additions & 3 deletions PluginDirectories/1/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,23 @@
"name": "flickr",
"zip_url": "flickr.zip"
},
{
"categories": [
"Search",
"Developer"
],
"creator_name": "alx stu",
"creator_url": "http://www.github.com/alxstu",
"description": "Search for FontAwesome Icons on glyphsearch.com",
"displayName": "FontAwesome Search",
"examples": [
"fontawesome twitter",
"search fontawesome coffee",
"fa trash"
],
"name": "FontAwesome",
"zip_url": "FontAwesome.zip"
},
{
"categories": [
"Meta"
Expand Down Expand Up @@ -1127,6 +1144,19 @@
"name": "hexCalc",
"zip_url": "hexCalc.zip"
},
{
"categories": [
"Utilities"
],
"description": "Temporarily hide all the icons on your desktop.",
"displayName": "Hide Desktop Icons",
"examples": [
"hide desktop icons",
"show desktop icons"
],
"name": "hide-desktop-icons",
"zip_url": "hide-desktop-icons.zip"
},
{
"categories": [
"Search",
Expand Down Expand Up @@ -1708,7 +1738,8 @@
"displayName": "Quick Web Search",
"examples": [
"/hubble telescope",
"/carroll gardens"
"/carroll gardens",
"images of california"
],
"name": "quicksearch",
"zip_url": "quicksearch.zip"
Expand Down Expand Up @@ -2263,6 +2294,10 @@
"zip_url": "torrent.zip"
},
{
"categories": [
"Media",
"Search"
],
"creator_name": "arnomoonens",
"creator_url": "https://github.com/arnomoonens",
"displayName": "Torrentz.eu Search",
Expand Down Expand Up @@ -2381,8 +2416,7 @@
"displayName": "Weather",
"examples": [
"weather brooklyn",
"how's the weather in uppsala?",
"weather new york now"
"how's the weather in san francisco?"
],
"name": "weather",
"zip_url": "weather.zip"
Expand Down
1 change: 0 additions & 1 deletion PluginDirectories/1/move-file.bundle/1.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/move-file.bundle/2.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6d86a83551ddd854383015482b2f7d8b40d0549660865c4e69c2c69bee623132
1 change: 0 additions & 1 deletion PluginDirectories/1/quicksearch.bundle/1.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/quicksearch.bundle/2.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
48f0ead0da149f8f49dbdb2e8581ec8fe3c02089b123b5f890ddb11b8517efeb
1 change: 0 additions & 1 deletion PluginDirectories/1/shutdown.bundle/1.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/shutdown.bundle/2.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10eb06b0555e487bf0929befc1be896e93a290cafaf03bcc19a6672cbbba5941
1 change: 0 additions & 1 deletion PluginDirectories/1/torrentz.bundle/2.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/torrentz.bundle/3.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f7417d9555e49a27540693aff9d649c6be618d9145c94cc0bda6223e187c8502
1 change: 0 additions & 1 deletion PluginDirectories/1/weather.bundle/5.version

This file was deleted.

1 change: 1 addition & 0 deletions PluginDirectories/1/weather.bundle/6.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
59d42097e401ec91ca0b3f829e8d98810862b5327aaef79490d67bb6b87e41b0
11 changes: 9 additions & 2 deletions flashlightplugins/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def send_upload_form(request, message=None):
"message": message,
"admin": users.is_current_user_admin()}))


class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.write(template("index.html"))
Expand All @@ -42,10 +41,18 @@ def get(self):

class MainHandler3(webapp2.RequestHandler):
def get(self):
key = 'main.MainHandler3.rendered'
rendered = memcache.get(key)
if not rendered:
rendered = self.render()
memcache.set(key, rendered, time=60)
self.response.write(rendered)

def render(self):
args = {
"featured_html": directory_html(category='Featured', browse=True)
}
self.response.write(template("index3.html", args))
return template("index3.html", args)

class UploadHandler(webapp2.RequestHandler):
def get(self):
Expand Down

0 comments on commit 40bc265

Please sign in to comment.